package com.jeesit.cloud.spot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeesit.cloud.model.ContractSchema;
import com.jeesit.cloud.spot.mapper.ContractSchemaMapper;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeesit.cloud.spot.service.IContractSchemaService;
import org.springframework.stereotype.Service;
import com.jeesit.cloud.dto.ContractSchemaDto;

import javax.annotation.Resource;
import java.util.List;

/**
 *  服务实现类
 *
 * @author lss
 * @since 2024-01-25
 */
@Service
public class ContractSchemaServiceImpl extends ServiceImpl<ContractSchemaMapper, ContractSchema> implements IContractSchemaService {

    @Resource
    private ContractSchemaMapper mapper;

    @Override
    public Page<ContractSchema> page(Page<ContractSchema> p, ContractSchemaDto dto) {
        return mapper.selectCustomPage(p,dto);
    }

    @Override
    public List<ContractSchema> list(int i, ContractSchemaDto dto) {
        return mapper.selectCustomList(i,dto);
    }

    @Override
    public void deltedDate(Long id) {
        mapper.deltedDate(id);
    }
}
